<?php
namespace Common\Model;
use Common\Model\AiModel;
class ApplyModel extends AiModel {
    public function toPidGetApplyList($pid){
      $where['pid']=$pid;
      $info=$this->where($where)->select();
      return $info;
    }
    public function pass($id){
      $where['id']=$id;
      $save['apply']=1;
      $save=$this->where($where)->save($save);
      return $save;
    }

    public function toPidGetUnum($pid){
    	$where['pid']=$pid;
    	$count=$this->where($where)->count();
    	return $count;
    }

    public function toUidGetPInfo($uid){
     $where['uid']=$uid;
     $info=$this->where($where)->select();
     return $info; 
    }
}